﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using Common;
using DAL;

namespace UI.system.page.apply
{
    public partial class applyadminset : System.Web.UI.Page
    {
        public List<AdminInfo> list = new List<AdminInfo>(); 
        public ApplyInfo info = new ApplyInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (B.MyAdmin.Role == 1)
            {
                list = AdminDAL.FindListByRole(2);
            }
            else
            {
                list = AdminDAL.FindListByID(B.MyAdmin.ID);
            }
            string id = JobRequest.GetRequestString("id");
            if (id != "0")
            {
                info = ApplyDAL.FindOneByID(id);
            }
        }
    }
}